import request from '@/utils/request'
import qs from 'qs'


/**
 * 业务目标与现状
 * 查询员工
 * 入参名称：
 */
export function getBusinessTargetNowStatus(query) {
  return request({
    url: '/api/admin/operationAnalysisForm/getBusinessTargetNowStatus?' + qs.stringify(query),
    method: 'get'
  })
}


/**
 * 工务目标与现状
 * 查询员工
 * 入参名称：
 */
export function getWorksTargetNowStatus(query) {
  return request({
    url: '/api/admin/operationAnalysisForm/getWorksTargetNowStatus?' + qs.stringify(query),
    method: 'get'
  })
}

/**
 * 导出工务目标与现状
 * 查询员工
 * 入参名称：
 */
// export function exportWorksTargetNowStatus(list, createBy, year) {
//   return '/api/admin/excel/exportWorksTargetNowStatus?list=' + encodeURI(encodeURI(JSON.stringify(list)))
//   + '&createBy=' + createBy + '&year=' + year;
// }

export function exportWorksTargetNowStatus(info) {
  return request({
    url: '/api/admin/excel/exportWorksTargetNowStatus',
    method: 'post',
    responseType: 'blob',
    data: info
  })
}



/**
 * 导出业务目标与现状
 * 查询员工
 * 入参名称：
 */
// export function exportBusinessTargetNowStatus(list, createBy, year) {
//   return '/api/admin/excel/exportBusinessTargetNowStatus?list=' + encodeURI(encodeURI(JSON.stringify(list)))
//   + '&createBy=' + createBy + '&year=' + year;
// }

export function exportBusinessTargetNowStatus(info) {
  return request({
    url: '/api/admin/excel/exportBusinessTargetNowStatus',
    method: 'post',
    responseType: 'blob',
    data: info
  })
}



/**
 * 按汇率计算业务目标与现状的统计
 * 查询员工
 * 入参名称：
 */
export function getBusinessTargetExchangeRate(query) {
  return request({
    url: '/api/admin/operationAnalysisForm/getBusinessTargetExchangeRate',
    method: 'get',
    params: query
  })
}

/**
 * 按汇率计算业务目标与现状的统计
 * 查询员工
 * 入参名称：
 */
export function getWorksTargetExchangeRate(query) {
  return request({
    url: '/api/admin/operationAnalysisForm/getWorksTargetExchangeRate',
    method: 'get',
    params: query
  })
}



